//
//  TFSCommandType.swift
//  TFSClient
//
//  Created by Samuel Richard Magny on 15-10-04.
//  Copyright © 2015 Samuel Richard Magny. All rights reserved.
//

import Foundation

public enum TFSCommandType: Int, CustomStringConvertible{
    case None
    
    case Pull
    case Checkin
    case Clone
    case Configure
    case Commit
    case Fetch
    
    
    public var description : String {
        switch self {
            // Use Internationalization, as appropriate.
        case .None: return "None";
        case .Pull: return "Pull";
        case .Checkin: return "Checkin";
        case .Clone: return "Clone";
        case .Configure: return "Configure";
        case .Commit: return "Commit";
        case .Fetch: return "Fetch";
        }
    }
    
    public var commandString : String {
        switch self {
        case .None: return "";
        case .Pull: return "pull";
        case .Checkin: return "checkin";
        case .Clone: return "clone";
        case .Configure: return "configure";
        case .Commit: return "";
        case .Fetch: return "fetch";
        }
    }
    
}